package com.thinkgem.jeesite.modules.book.entity;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * Created by aulbrother on 2015/11/30.
 */
public class BkPurchaseBatchDetail extends DataEntity<BkPurchaseBatchDetail>{
    private int pbdId;
    private int batchId;
    private String bkId;
    private String bkName;
    private String author;
    private String books;
    private String booksNum;
    private String bkEdit;
    private String bkVol;
    private String bkIsbn;
    private String bkEan13;
    private String bkClass;
    private double bkPrice;
    private double discountedPrice;
    private Integer mxCnt;
    private Integer mxArrived;
    private Integer intTtl;
    private String impPc;
    private String pubdate;
    private String publisher;
    private String othername;

    public BkPurchaseBatchDetail(){
    }

    public BkPurchaseBatchDetail(Integer batchId, String bkId,String isbn, double price, double discountedPrice, Integer mxCnt, Integer mxArrived, String bookname, String bkClass,String othername){
        this.batchId = batchId;
        this.bkName = bookname;
        this.bkId = bkId;
        this.bkIsbn = isbn;
        this.bkClass = bkClass;
        this.bkPrice = price;
        this.discountedPrice = discountedPrice;
        this.mxCnt = mxCnt;
        this.mxArrived = mxArrived;
        this.othername = othername;
    }

    public String getOthername() {
        return othername;
    }

    public void setOthername(String othername) {
        this.othername = othername;
    }

    public int getPbdId(){
        return pbdId;
    }

    public void setPbdId(int pbdId){
        this.pbdId = pbdId;
    }

    public int getBatchId(){
        return batchId;
    }

    public void setBatchId(int batchId){
        this.batchId = batchId;
    }

    public String getBkName(){
        return bkName;
    }

    public void setBkName(String bkName){
        this.bkName = bkName;
    }

    public String getBkEdit(){
        return bkEdit;
    }

    public void setBkEdit(String bkEdit){
        this.bkEdit = bkEdit;
    }

    public String getBkVol(){
        return bkVol;
    }

    public void setBkVol(String bkVol){
        this.bkVol = bkVol;
    }

    public String getBkIsbn(){
        return bkIsbn;
    }

    public void setBkIsbn(String bkIsbn){
        this.bkIsbn = bkIsbn;
    }

    public String getBkEan13(){
        return bkEan13;
    }

    public void setBkEan13(String bkEan13){
        this.bkEan13 = bkEan13;
    }

    public String getBkClass(){
        return bkClass;
    }

    public void setBkClass(String bkClass){
        this.bkClass = bkClass;
    }

    public double getBkPrice(){
        return bkPrice;
    }

    public void setBkPrice(double bkPrice){
        this.bkPrice = bkPrice;
    }

    public Integer getMxCnt(){
        return mxCnt;
    }

    public void setMxCnt(Integer mxCnt){
        this.mxCnt = mxCnt;
    }

    public Integer getMxArrived(){
        return mxArrived;
    }

    public void setMxArrived(Integer mxArrived){
        this.mxArrived = mxArrived;
    }

    public Integer getIntTtl(){
        return intTtl;
    }

    public void setIntTtl(Integer intTtl){
        this.intTtl = intTtl;
    }

    public String getImpPc(){
        return impPc;
    }

    public void setImpPc(String impPc){
        this.impPc = impPc;
    }

    public String getPubdate(){
        return pubdate;
    }

    public void setPubdate(String pubdate){
        this.pubdate = pubdate;
    }

    public String getPublisher(){
        return publisher;
    }

    public void setPublisher(String publisher){
        this.publisher = publisher;
    }

    public double getDiscountedPrice(){
        return discountedPrice;
    }

    public void setDiscountedPrice(double discountedPrice){
        this.discountedPrice = discountedPrice;
    }

    public String getAuthor(){
        return author;
    }

    public void setAuthor(String author){
        this.author = author;
    }

    public String getBkId(){
        return bkId;
    }

    public void setBkId(String bkId){
        this.bkId = bkId;
    }

    public String getBooks(){
        return books;
    }

    public void setBooks(String books){
        this.books = books;
    }

    public String getBooksNum(){
        return booksNum;
    }

    public void setBooksNum(String booksNum){
        this.booksNum = booksNum;
    }

    @Override
    public boolean equals(Object o){
        if(this == o) return true;
        if(o == null || getClass() != o.getClass()) return false;

        BkPurchaseBatchDetail that = (BkPurchaseBatchDetail)o;

        if(pbdId != that.pbdId) return false;
        if(batchId != that.batchId) return false;
        if(bkName != null ? !bkName.equals(that.bkName) : that.bkName != null) return false;
        if(bkEdit != null ? !bkEdit.equals(that.bkEdit) : that.bkEdit != null) return false;
        if(bkVol != null ? !bkVol.equals(that.bkVol) : that.bkVol != null) return false;
        if(bkIsbn != null ? !bkIsbn.equals(that.bkIsbn) : that.bkIsbn != null) return false;
        if(bkEan13 != null ? !bkEan13.equals(that.bkEan13) : that.bkEan13 != null) return false;
        if(bkClass != null ? !bkClass.equals(that.bkClass) : that.bkClass != null) return false;
        if(mxCnt != null ? !mxCnt.equals(that.mxCnt) : that.mxCnt != null) return false;
        if(mxArrived != null ? !mxArrived.equals(that.mxArrived) : that.mxArrived != null) return false;
        if(intTtl != null ? !intTtl.equals(that.intTtl) : that.intTtl != null) return false;
        if(impPc != null ? !impPc.equals(that.impPc) : that.impPc != null) return false;
        if(othername != null ? !othername.equals(that.othername) : that.othername != null) return false;
        return true;
    }

    @Override
    public int hashCode(){
        int result = pbdId;
        result = 31 * result + batchId;
        result = 31 * result + (bkName != null ? bkName.hashCode() : 0);
        result = 31 * result + (bkEdit != null ? bkEdit.hashCode() : 0);
        result = 31 * result + (bkVol != null ? bkVol.hashCode() : 0);
        result = 31 * result + (bkIsbn != null ? bkIsbn.hashCode() : 0);
        result = 31 * result + (bkEan13 != null ? bkEan13.hashCode() : 0);
        result = 31 * result + (bkClass != null ? bkClass.hashCode() : 0);
        result = 31 * result + (mxCnt != null ? mxCnt.hashCode() : 0);
        result = 31 * result + (mxArrived != null ? mxArrived.hashCode() : 0);
        result = 31 * result + (intTtl != null ? intTtl.hashCode() : 0);
        result = 31 * result + (impPc != null ? impPc.hashCode() : 0);
        result = 31 * result + (othername != null ? othername.hashCode() : 0);

        return result;
    }
}
